package com.example.backend.modules.ai.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "tongyi")
public class TongYiConfig {
    /**
     * API密钥
     */
    private String apiKey = "sk-186b7f4c8f374b34b7cc65317733181c";

    /**
     * 模型名称
     */
    private String model = "qwen-max";

    /**
     * 最大标记数
     */
    private Integer maxTokens = 2000;

    /**
     * 温度参数 (0.0-1.0)
     */
    private Float temperature = 0.7f;

    /**
     * 是否开启流式输出
     */
    private Boolean enableStream = false;
} 